package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MerchantCovert {
    MerchantCovert INSTANCE =  Mappers.getMapper(MerchantCovert.class);

    MerchantDTO entity2dto(Merchant merchant);

    Merchant dto2entity(MerchantDTO merchantDTO);

    List<MerchantDTO> entityList2dtoList(List<Merchant> merchants);

    List<Merchant> dtoList2entityList(List<MerchantDTO> merchants);
}
